home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Game-Power
/
Amiga Game-Power.iso
/
pd mix ii
/
access
/
hddriver
/
driver
/
begin.asm
< prev
next >
Wrap
Assembly Source File
|
1994-05-20
|
1KB
|
50 lines
include "exec/types.i"
include "exec/resident.i"
include "exec/nodes.i"
include "hdasm.i"
XDEF .begin
.begin:
clr.l d0
rts
;
; This structure needs to be near the beginning of the file so
; that AmigaDOS realises that this is a device driver
;
; The C version of the structure is shown below. However, since
; I want it in the code segment (not the data segment) its given
; here in assembler
;
; static struct Resident rom_tag = {
; RTC_MATCHWORD ,
; &rom_tag ,
; (APTR)((&rom_tag)+1) ,
; RTF_AUTOINIT ,
; HD_VERSION ,
; NT_DEVICE ,
; HD_PRIORITY ,
; dev_name ,
; dev_id_string ,
; (APTR)&AutoInit ,
; };
;
XREF _dev_name
XREF _dev_id_string
XREF _AutoInit
rom_tag
dc.w RTC_MATCHWORD ; special marker
dc.l rom_tag ; pointer to itself for double checking
dc.l end_tag ; pointer somewhere beyond end of structure
dc.b RTF_AUTOINIT ; autoinitialize structures
dc.b HD_VERSION ; version
dc.b NT_DEVICE ; device
dc.b HD_PRIORITY ; priority of driver
dc.l _dev_name ; name of device
dc.l _dev_id_string ; device id string
dc.l _AutoInit ; initialization block
end_tag